<!doctype html>
<html lang="zh_CN">

<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    {%block head%}
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.5.3/css/bootstrap.min.css" rel="stylesheet">
    {%block style%}{%endblock style%}
    <title>{%block title%}{%endblock title%} - 点点网后台</title>
    {%endblock head%}
</head>

<body>
    <nav class="navbar navbar-expand-lg sticky-top navbar-dark bg-dark">
        <a class="navbar-brand" href="/admin/">管理后台</a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown"
            aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarNavDropdown">
            <ul class="navbar-nav">
                <!-- <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button"
                        data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                        文章管理
                    </a>
                    <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
                        <a class="dropdown-item" href="/admin/types/">教程列表</a>
                        <a class="dropdown-item" href="/admin/article/add">添加文章</a>
                    </div>
                </li> -->
                <li class="nav-item">
                    <a class="nav-link" href="/admin/types/">教程列表</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="/admin/article/add">添加文章</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="#">用户管理</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="#">网站设置</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="#">广告管理</a>
                </li>
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button"
                        data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                        个人中心
                    </a>
                    <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
                        <a class="dropdown-item" href="#">个人信息</a>
                        <a class="dropdown-item" href="#">退出</a>
                    </div>
                </li>
            </ul>
        </div>
    </nav>
    <div class="container content" style="margin-top:10px;">
        {%block content%}{%endblock content%}
    </div>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.5.3/js/bootstrap.min.js"></script>
    {% block script %}{% endblock script %}
    {%block footer%}
    <footer class="footer mt-auto" style="background: #eee; height:50px; line-height: 50px;">
        <div class="container">
            <span class="text-muted">这里是底部</span>
        </div>
    </footer>
    {%endblock footer%}
</body>

</html>